package hs.bank.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
public class Card {
    @NotNull
    private int cardId;

    @NotNull
    private int cardNumber;

    @NotNull
    private int userId;

    @NotNull
    private double balance;

    public Card(int cardNumber,int userId){
        this.cardNumber=cardNumber;
        this.userId=userId;
    }
}
